package org.common.utils.net.netty.http.listener.entity;

import org.common.utils.net.netty.http.core.HttpRequest;
import org.common.utils.net.netty.http.listener.HttpListener;

/**
 * 功能调用异常。
 * @author zhouzhibing
 * @date 2025/11/24 14:28
 */
public class HandlerExceptionListenerInfo implements ListenerInfo {

    /**
     * 请求
     */
    private HttpRequest httpRequest;
    /**
     * 异常
     */
    private Exception e;

    public HandlerExceptionListenerInfo(HttpRequest httpRequest, Exception e) {
        this.httpRequest = httpRequest;
        this.e = e;
    }

    @Override
    public HttpListener.Key getKey() {
        return HttpListener.Key.HANDLER_EXCEPTION;
    }

    public HttpRequest getHttpRequest() {
        return httpRequest;
    }

    public Exception getE() {
        return e;
    }
}
